#include <iostream>
#include <cstring>
using namespace std;
class Point
{
private:
  int x, y; //点的x和y坐标

public:
  Point(int = 0, int = 0); // 构造函数
  void SetPoint(int, int); // 设置坐标
  int GetX() { return x; } // 取x坐标
  int GetY() { return y; } // 取y坐标
  void Print();            //输出点的坐标 };
  Point(int a, int b) { SetPoint(a, b); }
  void SetPoint(int a, int b)
  {
    x = a;
    y = b;
  }
  void Print()
  {
    cout << "[" << x << "," << y << "]";
  }
};

class Circle : public Point
{
private:
  double radius;

public:
  Circle(int x = 0, int y = 0, double r = 0.0) : Point(x, y)
  {
    Point(x, y);
  }

  void SetRadius(double r)
  {
    radius = r;
  }

  double GetRadius()
  {
    return radius;
  }

  double Area()
  {
    double Area;
    Area = 3.14 * radius * radius;
    return Area;
  }

  void Print()
  {
    Point::Print();
    cout << radius << endl;
  }
};

int main()
{
  int x, y, r;
  Point p(x, y);
  cout << "Circle p";
  p.Print();
  cout << endl;
  Circle c(x, y, r);
  cout << "Circle c Center=";
  c.Print();
  cout << endl;
  cout << "Radius=" << c.GetRadius() << endl;
  cout << "The centre of circle c";
  c.Print();
  cout << endl;
  cout
      << "The area of circle c" << c.Area() << endl;

  return 0;
}